import React,{useState} from 'react'
export default function Hasbeensubmitted() {
  let [list,setList]=useState([])
  JSON.parse(localStorage.getItem('list')).map((item)=>{
    list.push(item)
  })
  return (
    <div>
      {list.length>0 ? (<div>
        {list.map((item,ind)=>(<div key={ind}>
          <dl>
            <dt><img src={item.img}/></dt>
            <dd>{item.title}</dd>
            <dd>{item.price}(元)</dd>
            <dd>{item.word}</dd>
          </dl>
        </div>))}
      </div>):('还没有交商品')}
    </div>
  )
}
